package com.mall.search.feign;

import com.mall.common.util.RespResult;
import com.mall.search.model.SeckillGoodsEs;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Darren
 * @date 2022-09-28 14:53
 * Description：
 */
@FeignClient("mall-search")
@RequestMapping("/search/seckill/goods")
public interface SeckillGoodsSearchFeign {

    @PostMapping("/import")
    @ApiOperation("秒杀商品导入ES数据库")
    RespResult add(@RequestBody SeckillGoodsEs es);

}
